<html jwcid="@Shell" title="Results">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
        <title>Services</title>

        <link jwcid="@Style" href="info.css" media="all"/>

    </head>
    <body jwcid="@Body">

        <table width="100%" border="1">
            <tr>

                <td width="90%">
                    <span jwcid="@Phones"/>
                </td>

                <td width="10%" align="center">
                    <span jwcid="@ChargeButton" serviceID="ognl:@ge.info.pages.ScheduleTypePage@SERVICE_ID"></span>
                </td>
            </tr>
        </table>
        <br>

        <input jwcid="@Errors" exceptions='ognl:exceptions'/>
        <form jwcid="@Form">
            <input jwcid="@PropertySelection" model='ognl:page.getComboes().getCombo("ScheduleTypes")'
                   value='ognl:listScheduleType'> NABC </input>

            <input jwcid="@TextField" value="ognl:posterCriteria"/>

             <input jwcid="@DatePicker" value="ognl:scDate" style="width: 95px"/>

            <input jwcid="@Submit" value="Search" listener="listener:searchPosters"/>

        </form>

           <div style="overflow:auto; height:500px">

        <span jwcid="@If" condition="ognl:scheduleType!=null && scheduleType.schedulePlaces!=null">
            <form jwcid="@Form">
                <table>
                    <tr valign="top">
                        <td nowrap>
                            <table>
                                <span jwcid="@For" source="ognl:scheduleType.schedulePlaces" value="ognl:schedulePlace">
                                    <tr valign="top">
                                        <td valign="top" nowrap>
                                            <a jwcid="@DirectLink" listener="listener:getSchedule" parameters="ognl:schedulePlace">

                                                <font color="blue">
                                                    <input jwcid="@Insert" value="ognl:schedulePlace.placeName"/>
                                                </font>
                                            </a>
                                        </td>
                                    </tr>
                                </span>
                            </table>
                        </td>
                        <td>
                            <table>
                            <span jwcid="@If" condition="ognl:schedulePlaceCurrent!=null">

                                <span jwcid="@If" condition="ognl:schedulePlaceCurrent.mainID!=0">
                        <td>
                            <a jwcid="@DirectLink" listener="listener:openMainResultPage" parameters="ognl:schedulePlaceCurrent.mainID">
                                 <font color="green">
                                    <input jwcid="@Insert" value="ognl:schedulePlaceCurrent.placeName"/> <br><br>
                                </font>
                            </a>
                        </td>
                    </span>
                    <span jwcid="@Else">

                            <td>

                                    <font color="red">
                                    <input jwcid="@Insert" value="ognl:schedulePlaceCurrent.placeName"/><br><br>
                                </font>

                            </td>
                        </span>

                                <span jwcid="@If" condition="ognl:schedulePlaceCurrent!=null  && schedulePlaceCurrent.scheduleItems!=null">
                                    <table border="1">
                                        <tr>
                                            <th width="50px">
                                                &nbsp;&nbsp;
                                            </th>
                                            <th width="150px">
                                                თარიღი
                                            </th>
                                            <th width="200px">
                                                აფიშა
                                            </th>


                                            <th width="200px">
                                                ფასი
                                            </th>
                                            <th width="50px">
                                                &nbsp;&nbsp;
                                            </th>
                                        </tr>
                                        
                                        <span jwcid="@For" source="ognl:schedulePlaceCurrent.scheduleItems" value="ognl:scheduleItem" index="ognl:index">
                                            <tr>
                                                <td colspan="5" width="250px">

                                                    <input type="Submit" jwcid="@Submit" parameters="ognl:scheduleItem" value="SMS Day" style="width: 55px" action="listener:sendSMSday"/>


                                                </td>
                                            </tr>
                                            <tr>

                                                <td width="50px">

                                                    <input type="Submit" jwcid="@Submit" parameters="ognl:scheduleItem" value="SMS" style="width: 35px" action="listener:sendSMS"/>


                                                </td>

                                                <td width="150px">
                                                    <b>
                                                        <input jwcid="@Insert" value="ognl:scheduleItem.itemDate"/>
                                                    </b>
                                                </td>
                                                <td width="200px">
                                                    <input jwcid="@Insert" value="ognl:scheduleItem.itemName"/>
                                                </td>

                                                <td width="200px">
                                                    <font color="blue">
                                                        <input jwcid="@Insert" value="ognl:scheduleItem.price"/>
                                                    </font>
                                                </td>
                                                <td width="50px">

                                                    <input type="Submit" jwcid="@Submit" parameters="ognl:scheduleItem" value="Reserve" style="width: 45px" action="listener:openDiscoverPage"/>


                                                </td>
                                            </tr>
                                            <tr bgcolor="#CCCCCC">
                                                <td colspan="5">
                                                    <input jwcid="@Insert" value="ognl:scheduleItem.info"/>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td colspan="5" bgcolor="#747170">

                                                    &nbsp;&nbsp;
                                                </td>
                                            </tr>
                                            <span jwcid="@If" condition="ognl:break">
                                                <tr>
                                                    <td colspan="5" bgcolor="green">

                                                        &nbsp;&nbsp;
                                                    </td>
                                                </tr>

                                            </span>
                                        </span>
                                    
                                    </table>
                                </span>

                            </span>
                       </table>
                        </td>

                    </tr>
                </table>

            </form>
        </span>
        </div>
    </body>
</html>